/**
 * staff module api
 */

import base from "./base";
import axios from "@/utils/axios";

const staff = {
  getAllStaff(params) {
    return axios.get(base.appBaseUrl + '/staff/getAll', {params: params});
  },
  addStaff(params) {
    return axios.post(base.appBaseUrl + '/staff/add', params);
  },
  updateStaff(params) {
    return axios.put(base.appBaseUrl + '/staff/update', params);
  },
  deleteStaff(params) {
    return axios.delete(base.appBaseUrl + '/staff/number/delete', {params:params});
  },
  getDepartStaff(params) {
    return axios.get(base.appBaseUrl + '/staff/department_id', {params:params});
  },
  getUserInfo(params) {
    return axios.get(base.appBaseUrl + '/staff/emailget', {params:params});
  }
}

export default staff;
